//
//  JKJShopInfoTabView.m
//  jiukeji
//
//  Created by 小宇 on 2017/11/23.
//  Copyright © 2017年 小宇. All rights reserved.
//

#import "JKJShopInfoTabView.h"
#import "JKJShopInfoTabViewCell.h"
@interface JKJShopInfoTabView()<UITableViewDelegate,UITableViewDataSource>

@end

@implementation JKJShopInfoTabView


-(instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style{
	if (self = [ super initWithFrame:frame style:style]) {
		[self setupUI];
	}
	return self;
}

-(void)setupUI{
	self.dataSource = self;
	self.delegate = self;
}

//一共有多少个分组
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
	return 1;
}
//第 section 组有多少行数据
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
	//return _carResuceModel.count;
		NSLog(@"%d",_modelArray.count);
	return _modelArray.count;

}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
	JKJShopInfoTabViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"JKJShopInfoTabViewCell" forIndexPath:indexPath];
	cell.model = _modelArray[indexPath.row];
	cell.selectionStyle = UITableViewCellSelectionStyleNone;
	cell.backgroundColor = [UIColor whiteColor];
//	CXCarRescueCell *cell = [tableView dequeueReusableCellWithIdentifier:@"carRescueCell" forIndexPath:indexPath];
//	cell.selectedBackgroundView = [[UIView alloc] initWithFrame:cell.frame];
//	cell.selectedBackgroundView.backgroundColor = [UIColor hm_colorWithHex:SELECT_CELL_COLOR];
//
//	cell.carModel = _carResuceModel[indexPath.row];
//
	return cell;
}

@end
